<h1>Listing reservations</h1>

<table>
  <tr>
    <th>Id</th>
    <th>Rdate</th>
    <th>Rtime</th>
    <th>Qty</th>
    <th>Table</th>
    <th>Qtytable</th>
    <th>Status</th>
    <th>User</th>
    <th>Restaurant</th>
    <th>Restaurant Name</th>
    <th>Local</th>
    <th>Local Name</th>
    <th>Status</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @reservations.each do |reservation| %>
  <tr>
    <td><%= reservation.id %></td>
    <td><%= reservation.rdate %></td>
    <td><%= reservation.rtime %></td>
    <td><%= reservation.qty %></td>
    <td><%= reservation.table_id %></td>
    <td><%= reservation.qtytable %></td>
    <td><%= reservation.status %></td>
    <td><%= reservation.user_id %></td>
    <td><%= reservation.restaurant_id %></td>
    <td><%= reservation.restaurant_name %></td>
    <td><%= reservation.local_id %></td>
    <td><%= reservation.local_name %></td>
    <td><%= reservation.status %></td>
    <td><%= link_to 'Show', reservation %></td>
    <td><%= link_to 'Edit', edit_reservation_path(reservation) %></td>
    <td><%= link_to 'Destroy', reservation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Reservation', new_reservation_path %>
